import request from "@/utils/request";

export const mainListService = () => {
    return request.get('/book');
}

export const BookDetailService = (id) => {
    return request.get(`/book/detail?id=${id}`);
}

export const BookCategoryService = (params) => {
    return request.get(`/book/category`, {params: params});
}

export const BookCommentService = (id) => {
    return request.get(`/book/comment?id=${id}`);
}

export const BookSearchService = (params) => {
    return request.get(`/book/search`, {params: params});
}